﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using SMS.Entities;
using SMS.DAL;
using SMS.Entities.Report;

namespace SMS.Web.Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IReportService" in both code and config file together.
    [ServiceContract]
    public interface IReportService
    {
        [OperationContract]
        void DoWork();

        [OperationContract]
        List<SaleReport> GetSaleDetailReportList(string UserName, DateTime FromDate, DateTime ToDate, string SearchOption, out SMSException serviceError);

        [OperationContract]
        List<ProductSaleReport> GetProductSaleReportDataList(string UserName, DateTime FromDate, DateTime ToDate, string SearchOption, out SMSException serviceError);

        [OperationContract]
        List<CustomerReport> GetCustomerReportDataList(string UserName, DateTime FromDate, DateTime ToDate, string SearchOption, out SMSException serviceError);

        [OperationContract]
        List<CustomerReport> GetIndividualCustomerReportDataList(string UserName, int CustomerID, DateTime FromDate, DateTime ToDate, string SearchOption, out SMSException serviceError);

        [OperationContract]
        List<NewCustomerReport> GetNewCustomerReportDataList(string UserName, DateTime FromDate, DateTime ToDate, string SearchOption, out SMSException serviceError);
    }
}
